import { BrowserWindow } from 'electron'

export const getWindowByEvent = (event: Electron.IpcMainEvent) => {
  return BrowserWindow.getAllWindows().find((window) => window.id === event.sender.id)
}
